<?php
$resmen=obtener_menu(0);
?>
<link href="../estilos.css" rel="stylesheet" type="text/css" />
     <div id="banner">
        <!-- start Basic Jquery Slider -->
        <ul class="bjqs">
          <li><img src="../img/header/01.jpg" title=""></li>
          <li><img src="../img/header/02.jpg" title=""></li>
          <li><img src="../img/header/03.jpg" title=""></li>
          <li><img src="../img/header/04.jpg" title=""></li>
          <li><img src="../img/header/05.jpg" title=""></li>
          <li><img src="../img/header/06.jpg" title=""></li>
        </ul>
        <!-- end Basic jQuery Slider -->
      </div>
  <script>
      $(document).ready(function() {
     
	 $('#banner').bjqs({
        'animation' : 'fade',
        'width' : 940,
        'height' : 150,
		'animationDuration' : 1200,
    	'showMarkers' : false,
		 nextText: '.',
         prevText: '.',
    	'centerControls' :false,
    	'useCaptions' : false,
    	'keyboardNav' : false
        });
	
        
      });
    </script>
  <div id= "menuWrapper">
       <ul id="nav">
        <li class="current"><a href="index.php">INICIO</a></li>
      <?php while($regmen=mysql_fetch_array($resmen)):?>
        <li><a href="<?php echo utf8_encode($regmen['men_url'])?>" target="<?php echo utf8_encode($regmen['men_destino'])?>"><?php echo strtoupper(utf8_encode($regmen['men_titulo']))?></a>
           <?php 
           $ressme=  obtener_submenu($regmen['men_id'], 0);
           if(mysql_num_rows($ressme)>0):
           ?>
            <ul>
                <?php while($regsmen=mysql_fetch_array($ressme)):?>
                <li><a href="<?php echo utf8_encode($regsmen['smen_url'])?>" target="<?php echo utf8_encode($regsmen['smen_destino'])?>"><?php echo strtoupper(utf8_encode($regsmen['smen_titulo']))?></a>
                 <?php
           $resssme=  obtener_sub_submenu($regsmen['smen_id']);
           if(mysql_num_rows($resssme)>0):
           ?>
                  <ul>
                    <?php while($regssmen=mysql_fetch_array($resssme)):?>
                    	<li><a href="<?php echo utf8_encode($regssmen['smen_url'])?>" target="<?php echo utf8_encode($regssmen['smen_destino'])?>"><?php echo strtoupper(utf8_encode($regssmen['smen_titulo']))?></a></li>
                     <?php endwhile ?>                             
                    </ul>


               <?php endif?>

                </li>
                <?php endwhile ?>
            </ul>
             <?php endif?>
        </li>
        <?php endwhile ?>
     
    </ul>
</div>
    <div id="buscador">
    <form action="resultados.php" method="post">
    <input name="busqueda" type="text" class="buscador_campo" value="Ingrese su busqueda..." maxlength="50" />
    <input name="Buscar" type="submit" class="buscador_boton" value="&gt;" />
    </form>
    </div>